<template>
  <div class="login-con">
    <div class="login">
      <h1>账号登入</h1>
      <div class="logo-back">
        <img src="imgs/logo.png" alt="">
        <p>让每个人都能享受科技的乐趣</p>
      </div>
    </div>
    <router-view></router-view>
    <div class="all">
      <router-link to="/login/phone" v-if="$route.path.indexOf('phone')===-1">手机号登入 | </router-link>
      <router-link to="/login/password" v-else>密码登入 | </router-link>
      <router-link to="/register">注册账号</router-link>
    </div>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: 'Login',
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>
.login-con {
  width: 540px;
  margin: 0 auto;
  text-align: center;
  .login {
    h1 {
      padding: 20px 0;
      font-size: 32px;
    }
    .logo-back {
      font-size: 22px;
      padding: 28px 0 68px 0;
      background: url('../../../public/imgs/login-background.png') no-repeat center;
      color: #6f6f6f;
      img {
        width: 48px;
        height: 48px;
      }
      p {
        margin-top: 35px;
      }
    }
  }
  .all {
    font-size: 22px;
    margin-top: 30px;
    a {
    }
  }
}
</style>
